package com.iyjhsoc.game.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iyjhsoc.game.domain.VO.PlayerVO;
import com.iyjhsoc.game.domain.dto.PlayerDTO;
import com.iyjhsoc.game.domain.entity.PlayerDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PlayerDAO extends BaseMapper<PlayerDO> {

    PlayerDO selectByGameIdAndName(@Param("name") String name,@Param("gameId") String gameId);

    List<PlayerDTO> queryList(PlayerVO vo);

    PlayerDTO getPlayerById(String id);
}
